package com.seek.educenter.mapper;

import com.seek.commonutils.Statistics;
import com.seek.educenter.entity.UcenterMember;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 会员表 Mapper 接口
 * </p>
 *
 * @author wml
 * @since 2022-02-19
 */
public interface UcenterMemberMapper extends BaseMapper<UcenterMember> {

    // 查询某一天注册人数
    Integer countRegisterByDate(String date);

    // 统计一个月以内注册的人数，按天数统计
    List<Statistics> getRegistryMonth();

    // 统计一年内注册的人数，按月数统计
    List<Statistics> getRegistryYear();
}
